import { User } from "@/typings"
import requestWithToken from "@/utils/request"

export const getUserInfo=():Promise<User>=>{
    return requestWithToken("/user/getUserInfo",'GET',{})
}
export const updateUser=(data:any)=>{
    return requestWithToken('/user/update','POST',data)
}